#include "httpServer.hpp"
#include <memory>
#include "log_pro.hpp"

int main(int argc, char *argv[])
{
    uint16_t port = 10000;
    if (argc == 2)
    {
        port = atoi(argv[1]);
        lg(NOTICE,"get you input port:%d",port);
    }
    std::shared_ptr<HttpServer> httpser_ptr=std::make_shared<HttpServer>(port);
    httpser_ptr->loop();

    return 0;
}
